<?php
error_reporting(0);
include('check.php');
include_once '../comm/config.php';
include_once '../comm/checkpostandget.php';
$id = $_GET['id'];
if($id==''){
	echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8' /><script language=javascript>alert('请选择要删除的信息！');window.location='msg_list.php?act=in';</script>";
}else{
	$link = mysql_connect($dbserver, $dbuser, $dbpass);
	if (!$link) {
		die(ERR_DB);
	}
	else
	{
		mysql_query("set names utf8");
		mysql_select_db($dbname);
		mysql_query("Delete from ".$BIAOTOU."msg where id=".$id." and ddusername='".$_SESSION["duoduouser"]."' "); 
		echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8' /><script>window.location='msg_list.php?act=in';</script>";
	}
	mysql_close($link);
}
?>